using System.ComponentModel;
using System.Data;
using Dimok.Data;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class ContractHolder_GroupsDataSource : ObjectDataSourceBase {
		public override string SelectViewName { get { return "v_ADS_ContractHolder_Groups"; } }
		public override string InsertViewName { get { return "t_ADS_ContractHolder_Groups"; } }
		public override DataView SelectEx() {
			return base.Select("DomainContext=@DC", ADs.LDAP.domainContext); ;
		}
		public void DeleteEx(int ContractHolderID, string SID_Group) {
			Delete("ContractHolderID=@CHID AND SID_Group=@SID AND DomainContext=@DC", ContractHolderID, SID_Group, ADs.LDAP.domainContext);
		}
	}
}